package com.example.bgmachine.bgmachine.commons;

import com.example.bgmachine.bgmachine.datas.CleanRunRecord;
import com.example.bgmachine.bgmachine.datas.DataInfors;

import java.util.HashMap;

public class CleanConfigRecord {

    static CleanConfigRecord mCleanConfigRecord = null;

    private HashMap<String , CleanRunRecord> mCleanRunRecordMap= new  HashMap<String , CleanRunRecord>();

    public CleanConfigRecord() {
        //this.homeImage =this.homeUrl;
    }

    static public CleanConfigRecord getmUrlinfor() {
        if (mCleanConfigRecord == null) {
            mCleanConfigRecord = new CleanConfigRecord();
        }

        return mCleanConfigRecord;
    }


    public HashMap<String, CleanRunRecord> getmCleanRunRecordMap() {
        return mCleanRunRecordMap;
    }

    public void setmCleanRunRecordMap(HashMap<String, CleanRunRecord> mCleanRunRecordMap) {
        this.mCleanRunRecordMap = mCleanRunRecordMap;
    }

    public void addCleanRunRecordMap(String keysa, CleanRunRecord cleanRunRecord){
        this.mCleanRunRecordMap.put(keysa,cleanRunRecord);
    }

    public void  clearCleanRunRecordMap(){
        this.mCleanRunRecordMap.clear();
    }

    public CleanRunRecord getCleanRunRecordMapIndex( String keysa ){
        return  this.mCleanRunRecordMap.get(keysa);
    }

    @Override
    public String toString() {
        return "CleanConfigRecord{" +
                "mCleanRunRecordMap=" + mCleanRunRecordMap +
                '}';
    }
}
